package com.engine4cloud.tdf.supervision.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.supervision.dto.create.SpEmergencyReportCreateDTO;
import com.engine4cloud.tdf.supervision.dto.query.SpEmergencyReportQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.SpEmergencyReportResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.SpEmergencyReportUpdateDTO;
import com.engine4cloud.tdf.supervision.dto.update.SpSimplePreActionUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.SpEmergencyReportEntity;

public interface SpEmergencyReportService extends IService<SpEmergencyReportEntity> {

    PageInfo<SpEmergencyReportResultDTO> pageList(Params page, SpEmergencyReportQueryDTO dto);

    Boolean create(SpEmergencyReportCreateDTO dto);

    Boolean update(SpEmergencyReportUpdateDTO dto);

    SpEmergencyReportResultDTO getById(Long id);

    /**
     * 根据流程编号查询突发事件信息
     *
     * @param batch 流程编号
     * @return SpEmergencyReportResultDTO
     */
    SpEmergencyReportResultDTO getByBatch(String batch);

    void changeAction(SpSimplePreActionUpdateDTO dto);
}